﻿@model N03_11HCA_HTTTHD.Models.Kho_Them_ThietBiCongNghe
@using N03_11HCA_HTTTHD.Models

@{
    ViewBag.Title = "Thêm thiết bị công nghệ";
    Layout = "~/Views/Shared/_LayoutKho.cshtml";
}

 
@section JavaScriptCSSImport{
    <link href="@Url.Content("~/Content/mycontent/list_counter.css")" rel="stylesheet" type="text/css"/>
    <!--kiem tra can ban dich vu them vao -->
    <script type="text/javascript">
        function validateForm() {
            var tentv = document.forms["Kho_Them_ThietBiCongNghe"]["@ChaoBan_Them_DichVu.Name_tenViet"].value;
            var tenanh = document.forms["Kho_Them_ThietBiCongNghe"]["@ChaoBan_Them_DichVu.Name_tenAnh"].value;
            //var hinhanh = document.forms["ChaoBan_Them_DichVu"]["@ChaoBan_Them_DichVu.Name_fileHinhAnhDinhKem"].value;

            if (tentv == null || tentv == "") {
                alert("Vui lòng nhập tên tiếng Việt");
                return false;
            }

            if (tenanh == null || tenanh == "") {
                alert("Vui lòng nhập tên tiếng Anh");
                return false;
            }
            return true;
        }
    </script>
}
 

<h2>Thêm chào bán - Thiết bị công nghệ</h2>
<form name = "Kho_Them_ThietBiCongNghe" method = "post" action = "/Kho/Them_ThietBiCongNghe" onsubmit="return validateForm()">

<table width="100%" border="0">
            <tr>
                <td colspan="2">
                    <span>PHẦN THÔNG TIN CHUNG</span>
                </td>
            </tr>
            
            <tr>
                <td>
                    <span>Tên tiếng Việt:</span>
                    <span>*</span>
                </td>
                <td>
                    <input name="@Kho_Them_ThietBiCongNghe.Name_tenViet" type="text"id="" />
                    <span></span>
                </td>
            </tr>
            <tr>
                <td >
                    <span>Tên tiếng Anh:</span>
                </td>
                <td>
                    <input name="@Kho_Them_ThietBiCongNghe.Name_tenAnh" type="text"  id=""  />
                </td>
            </tr>
            <tr>
                <td >
                    <span>Xuất xứ:</span>
                    <span>*</span>
                </td>
                <td>
                    <select name="@Kho_Them_ThietBiCongNghe.Name_sllXuatXu" id="@Kho_Them_ThietBiCongNghe.Name_sllXuatXu" >
				<option value="Albania">Albania</option>
				<option value="Algeria">Algeria</option>
				<option value="American Samoa">American Samoa</option>
				<option value="Antarctica">Antarctica</option>
				<option value="Angola">Angola</option>
				<option value="Anguilla">Anguilla</option>
				<option value="APCTT">APCTT</option>
				<option value="Argentina">Argentina</option>
				<option value="Armenia">Armenia</option>
				<option value="Aruba">Aruba</option>
				<option value="Australia">Australia</option>
				<option value="Austria">Austria</option>
				<option value="Azerbaijan">Azerbaijan</option>
				<option value="Bahamas">Bahamas</option>
				<option value="Bahrain">Bahrain</option>
				<option value="Bangladesh">Bangladesh</option>
				<option value="Barbados">Barbados</option>
				<option value="Belarus">Belarus</option>
				<option value="Belgium">Belgium</option>
				<option value="Belize">Belize</option>
				<option value="Benin">Benin</option>
				<option value="Bermuda">Bermuda</option>
				<option value="Bhutan">Bhutan</option>
				<option value="Bolivia">Bolivia</option>
				<option value="Botswana">Botswana</option>
				<option value="Bouvet Island">Bouvet Island</option>
				<option value="Brazil">Brazil</option>
				<option value="Brunei">Brunei</option>
				<option value="Bulgaria">Bulgaria</option>
				<option value="Burkina Faso">Burkina Faso</option>
				<option value="Burundi">Burundi</option>
				<option value="Cambodia">Cambodia</option>
				<option value="Cameroon">Cameroon</option>
				<option value="Canada">Canada</option>
				<option value="Cape Verde">Cape Verde</option>
				<option value="Cayman Islands">Cayman Islands</option>

				<option value="Comoros">Comoros</option>
				<option value="Congo">Congo</option>
				<option value="Congo">Congo</option>
				<option value="Cook Islands">Cook Islands</option>
				<option value="Costa Rica">Costa Rica</option>

				<option value="Cuba">Cuba</option>
				<option value="Cyprus">Cyprus</option>
				<option value="Czech Republic">Czech Republic</option>
				<option value="Chad">Chad</option>
				<option value="Chile">Chile</option>
				<option value="China">China</option>

				<option value="Denmark">Denmark</option>
				<option value="Djibouti">Djibouti</option>
				<option value="Dominica">Dominica</option>

				<option value="East Timor">East Timor</option>
				<option value="Ecuador">Ecuador</option>
				<option value="Egypt">Egypt</option>
				<option value="El Salvado">El Salvador</option>

				<option value="Eritrea">Eritrea</option>
				<option value="Estonia">Estonia</option>
		
				
				<option value="Kazakhstan">Kazakhstan</option>
				<option value="Kenya">Kenya</option>
				<option value="Kiribati">Kiribati</option>
				<option value="Korea">Korea</option>
		
				<option value="Macedonia">Macedonia</option>

				<option value="Mayotte">Mayotte</option>
				<option value="Mexico">Mexico</option>
				<option value="Micronesia">Micronesia</option>
				<option value="Moldova">Moldova</option>
				<option value="Monaco">Monaco</option>
		
				<option value="Panama">Panama</option>
	
				<option value="Paraguay">Paraguay</option>
				<option value="Peru">Peru</option>
		
				<option value="Samoa">Samoa</option>

				<option value="Sudan">Sudan</option>
				<option value="Suriname">Suriname</option>

				<option value="Swaziland">Swaziland</option>
				<option value="Uganda">Uganda</option>
				<option value="Ukraine">Ukraine</option>
				<option value="UNIDO">UNIDO</option>
	
				<option value="Venezuela">Venezuela</option>
				<option selected="selected" value="Vietnam">Vietnam</option>
				<option value="Yemen">Yemen</option>
				<option value="Yugoslavia">Yugoslavia</option>
				<option value="Zambia">Zambia</option>
				<option value="Zimbabwe">Zimbabwe</option>

			</select>
                    <span></span> 
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <span>Mô tả:</span><span>*</span></td>
            </tr>
            <tr>
                <td colspan="2" >
                    <textarea id="@Kho_Them_ThietBiCongNghe.Name_txtMoTa" name="" cols="72" rows="10"></textarea>
			
                    <span></span>
                </td>
            </tr>
            <tr>

                <td  colspan="2">
                    <span>Ưu điểm:</span></td>
            </tr>
            <tr>

                <td colspan="2"><textarea id="" name="@Kho_Them_ThietBiCongNghe.Name_txtUuDiem" cols="72" rows="10"></textarea>
			
                </td>
            </tr>
            <tr>

                <td colspan="2">
                    <a href="">Đính kèm hình sản phẩm</a>
                    (&lt;50 Kb)</td>
            </tr>
            <tr>
                <td colspan="2">
                    
                </td>
            </tr>
            <tr>
                
                <td colspan="2">
                    <a name = "@Kho_Them_ThietBiCongNghe.Name_fileDinhKem"id="" href="">Đính kèm tệp</a>
                    (&lt;50 Kb)</td>
            </tr>
            <tr>
                <td  colspan="2" >
                     
                </td>
            </tr>
        </table>
    
		
  
        <table border="0">
            <tr>
                <td  colspan="1" >
                </td>
                <td colspan="2" >
                    <span >PHẦN THÔNG TIN THIẾT BỊ</span>
                </td>
            </tr>
            <tr>
                <td >
                </td>
                <td  >
                    <span>Đạt tiêu chuẩn:</span></td>
                <td>
                @for (int i = 0; i < @Model.ListTieuChuan.Count; i++)
                {
                    String id = @Model.ListTieuChuan[i].Ten + i;
                     <span><input id="@id" type="radio" name="@Kho_Them_ThietBiCongNghe.Name_inputTieuChuan" value = "@Model.ListTieuChuan[i].ID"/><label for="@id">@Model.ListTieuChuan[i].Ten</label></span>
                }
                   
                  
                </td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td colspan="2">
                    <span>Công suất / Năng suất:</span>
                    <span>Ví dụ: công suất 1.00 chai/1 ca</span>
                </td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td  colspan="2">
                    <textarea name="@Kho_Them_ThietBiCongNghe.Name_txtCongSuatNangSuat" rows="5" cols="72" id="@Kho_Them_ThietBiCongNghe.Name_txtCongSuatNangSuat"></textarea></td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td  colspan="2">
                    <span>Các chỉ tiêu kinh tế - kỹ thuật:</span>
                    <span>Ví dụ: năm sản xuất, kích thước, trọng lượng...</span>
                </td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td colspan="2">
                    <textarea name="@Kho_Them_ThietBiCongNghe.Name_txtCacChiTieuKinhTeKyThuat" rows="5" cols="72" id="@Kho_Them_ThietBiCongNghe.Name_txtCacChiTieuKinhTeKyThuat"></textarea></td>
            </tr>
            <tr>
                <td>
                </td>
                <td><span>Mức độ phát triển:</span></td>
                <td>
                    <table border="0">
                        
                            @for (int i = 0; i < @Model.ListMucDoPhatTrien.Count; i++)
                            {
                                String id = @Model.ListMucDoPhatTrien[i].Ten + i;  
                             <tr>
                            <td>
                             
                               <span><input id="@id" type="radio" name="@Kho_Them_ThietBiCongNghe.Name_inputMucDoPhatTrien" value = "@Model.ListMucDoPhatTrien[i].ID" /><label for="@id">@Model.ListMucDoPhatTrien[i].Ten</label></span> 
                            </td>
                        </tr>
                            }
                              
                          
                        
                       
                    </table>
                </td>
            </tr>
            <tr>
                <td >
                </td>
                <td >
                    <span >Xuất xứ:</span></td>
                <td>
                    <table border="0">
                    @for (int i = 0; i < @Model.ListXuatXuDeTai.Count; i++)
                    {
                        String id = @Model.ListXuatXuDeTai[i].Ten + i;
                        <tr>
                            <td>
                                <span><input id="@id" type="radio" value="@Model.ListXuatXuDeTai[i].ID" name="@Kho_Them_ThietBiCongNghe.Name_inputXuatXuDeTai" /><label for="@id">@Model.ListXuatXuDeTai[i].Ten</label></span>
                            </td>
                        </tr>
                    }
                        
                       
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td><span>Năm hoàn thiện:</span></td>
                <td>
                    <input name="@Kho_Them_ThietBiCongNghe.Name_inputNamHoanThien" type="text" value="0" maxlength="4" id="@Kho_Them_ThietBiCongNghe.Name_inputNamHoanThien" />
                    
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                     </td>
            </tr>
            </table>

            <table border="0">
                        <tr>
                            <td colspan="2" >
                                <span id="">YÊU CẦU KỸ THUẬT TRONG VẬN HÀNH VÀ LẮP ĐẶT</span></td>
                        </tr>
                        <tr>
                            <td>
				
                                 <table>
                                 <tr>
                                 <td>
                                <span>Nhân lực:</span></td>
                                            <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputNhanLuc" type="text" value="0" id="@Kho_Them_ThietBiCongNghe.Name_inputNhanLuc" />
                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                <span id="">Kỹ sư:</span></td> <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputKySu" type="text" value="0" id="@Kho_Them_ThietBiCongNghe.Name_inputKySu" />
                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                <span id="">Kỹ thuật viên:</span></td>
                                            <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputKyThuatVien" type="text" value="0" id="@Kho_Them_ThietBiCongNghe.Name_inputKyThuatVien" />
                                </td>
                                        </tr>
                                        <tr>
                                            <td >
                                <span id="">Công nhân:</span></td>
                                            <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputCongNhan" type="text" value="0" maxlength="4" id="@Kho_Them_ThietBiCongNghe.Name_inputCongNhan" />
                                </td>
                                        </tr>
                                    </table>
                            </td>
                            <td>
                                    <table>
                                        <tr>
                                            <td>
                                <span>Điện:</span></td>
                                            <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputDien" type="text" id="@Kho_Them_ThietBiCongNghe.Name_inputDien"  /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                <span">Khí đốt, dầu:</span></td>
                                            <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputKhiDot" type="text" id="@Kho_Them_ThietBiCongNghe.Name_inputKhiDot"  /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                <span>Mặt bằng:</span></td>
                                            <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputMatBang" type="text" id="@Kho_Them_ThietBiCongNghe.Name_inputMatBang"  /></td>
                                        </tr>
                                        <tr>
                                            <td>
                                <span >Nhiên liệu:</span></td>
                                            <td>
                                <input name="@Kho_Them_ThietBiCongNghe.Name_inputNhienLieu" type="text" id="@Kho_Them_ThietBiCongNghe.Name_inputNhienLieu"  /></td>
                                        </tr>
                                    </table>
                                
		
                            </td>
                        </tr>
                    </table>
               
                    <!--chuyen giao -->
                     <table>
                <tr>
                    <td colspan="1" > </td>
          
                    <td> <span id="">PHƯƠNG THỨC CHUYỂN GIAO</span></td>
                </tr>
          
            <tr>
                <td >
                </td>
                <td >
                    <span id="">Chuyển giao:</span></td>
                <td >
                @for (int i = 0; i < @Model.ListChuyenGiao.Count; i++)
                {
                    String id = @Model.ListChuyenGiao[i].Ten + i;
                     <span ><input id="@id" type="checkbox" name="@Kho_Them_ThietBiCongNghe.Name_chuyenGiao" value="@Model.ListChuyenGiao[i].ID" /><label for="@id">@Model.ListChuyenGiao[i].Ten</label></span>
                }
                       
                </td>
            </tr>
           
                        
            <tr>
                <td >
                </td>
                <td >
                    <span> Cung cấp:</span></td>
                <td >
                @for (int i = 0; i < @Model.ListCungCap.Count; i++)
                {
                    String id = @Model.ListCungCap[i].Ten + i; 
                      <span ><input id="@id" type="checkbox" name="@Kho_Them_ThietBiCongNghe.Name_cungCap" value="@Model.ListCungCap[i].ID" /><label for="@id">@Model.ListCungCap[i].Ten</label></span>  
                }
                  
                </td>
            </tr>
            
            <tr>
                <td >
                </td>
                <td  >
                    <span>Giá khởi điểm:</span></td>
                <td>
                    <input name="@Kho_Them_ThietBiCongNghe.Name_giaKhoiDiem" type="text" value="0" id="@Kho_Them_ThietBiCongNghe.Name_giaKhoiDiem" />
                    <span id="">đến</span>
                    <input name="@Kho_Them_ThietBiCongNghe.Name_giaKetThuc" type="text" value="0" id="@Kho_Them_ThietBiCongNghe.Name_giaKetThuc" /><select name="@Kho_Them_ThietBiCongNghe.Name_donviTinh" id="@Kho_Them_ThietBiCongNghe.Name_donviTinh">
				<option selected="selected" value="B">Tỉ</option>
				<option value="H">Trăm</option>
				<option value="K">Ngàn</option>
				<option value="M">Triệu</option>

			</select><select name="@Kho_Them_ThietBiCongNghe.Name_donviTienTe" id="@Kho_Them_ThietBiCongNghe.Name_donviTienTe" >
				<option selected="selected" value="AUD">Đôla Úc</option>
				<option value="BP">Bảng Anh</option>
				<option value="USD">Đôla Mỹ</option>
				<option value="VND">Việt nam đồng</option>

			</select>
                    
                    
                    </td>
            </tr>
            <tr>
                <td >
                </td>
                <td >
                </td>
                <td >
                    <span >Giá khởi điểm cao nhất phải nhỏ hơn giá thấp nhất.</span></td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td colspan="2">
                    <span>Điều kiện khác:</span>
                                <span>Ví dụ: 120 USD (FOB)</span></td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td colspan="2">
                    <textarea name="@Kho_Them_ThietBiCongNghe.Name_txtDieuKienKhac" rows="5" cols="72" id="@Kho_Them_ThietBiCongNghe.Name_txtDieuKienKhac"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td  colspan="2">
                    <span>Chi phí khác:</span>
                    <span>Ví dụ: chi phí đào tạo, phí tư vấn kỹ thuật, phí chuyển giao bí quyết</span></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td   colspan="2">
                    <textarea name="@Kho_Them_ThietBiCongNghe.Name_chiPhiKhac" rows="5" cols="72" id="@Kho_Them_ThietBiCongNghe.Name_chiPhiKhac" ></textarea></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td  colspan="2">
                    <span >Bảo hành:</span></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td  colspan="2">
                    <textarea name="@Kho_Them_ThietBiCongNghe.Name_baoHanh" rows="5" cols="20" id="@Kho_Them_ThietBiCongNghe.Name_baoHanh"></textarea></td>
            </tr>
            <tr>
                <td >
                </td>
                <td >
                    <span>Chuyển giao cho:</span></td>
                <td >
                                <input name="@Kho_Them_ThietBiCongNghe.Name_chuyenGiaoCho" type="text" value="0" maxlength="6" id="@Kho_Them_ThietBiCongNghe.Name_chuyenGiaoCho"  />
                                <span>đơn vị</span>
                                
                </td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td colspan="2" >
                                <span>Liệt kê một số đơn vị đã chuyển giao :</span></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td  colspan="2" >
                    <textarea name="@Kho_Them_ThietBiCongNghe.Name_donViDaChuyenGiao" rows="5" cols="20" id="@Kho_Them_ThietBiCongNghe.Name_donViDaChuyenGiao"></textarea></td>
            </tr>
       </table>
    
<!----------thông tin phân loại------------------------------------->
<table>
    <tr>
         <td align="left" colspan="2" class="table">
                    <span>THÔNG TIN PHÂN LOẠI</span>
         </td>
    </tr>
    <tr>
        <td>Phân loại</td>
        <td>
	        @for (int i = 0; i < @Model.ListPhanLoai.Count; i++)
         {
             String id = "dsDanhMuc" +@Model.ListPhanLoai[i].ID;
                       
             <span ><input id="@id" type="checkbox" value="@Model.ListPhanLoai[i].ID" name="@Kho_Them_ThietBiCongNghe.Name_slPhanLoai" /><label for="@id">@Model.ListPhanLoai[i].TenDanhMuc</label></span>

         }
        </td>
    </tr>
    <tr>
    <td>Lĩnh vực</td>
         <td>
			 @for (int i = 0; i < @Model.ListLinhVuc.Count; i++)
    {
        String id = "dsLinhVuc" +@Model.ListLinhVuc[i].ID;
                       
                         <span ><input id="@id" type="checkbox" value="@Model.ListLinhVuc[i].ID" name="@Kho_Them_ThietBiCongNghe.Name_slLinhVuc" /><label for="@id">@Model.ListLinhVuc[i].Ten</label></span>
    }	
        </select>
        </td>   
    </tr>
        <tr>
        <td>Từ khóa</td>
        <td   colspan="2">
                    <textarea name="@Kho_Them_ThietBiCongNghe.Name_inputTuKhoa" rows="5" cols="72" id="@Kho_Them_ThietBiCongNghe.Name_inputTuKhoa" ></textarea></td>
        </tr>    
</table>
			
            <table>
            <tbody><tr>
        <td>
        </td>
        <td><input onclick = "validateForm"  type="submit" name="@Kho_Them_ThietBiCongNghe.Name_btnSubmit" value="Lưu thông tin" id="@Kho_Them_ThietBiCongNghe.Name_btnSubmit" /> 
            &#160;<input type="submit" name="@Kho_Them_ThietBiCongNghe.Name_btnHuy" value="Hủy" id = "@Kho_Them_ThietBiCongNghe.Name_btnHuy"/></td></tr>

       </tbody>
       </table>


       </form>
